package cn.south.campus.admin.sys.model.entity;

import cn.south.campus.common.model.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author chow
 * @since 2024/10/31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_menu")
public class SysMenu extends BaseEntity {

    /**
    * 菜单名称
    */
    @TableField("menu_name")
    private String menuName;

    /**
    * 菜单路径
    */
    @TableField("path")
    private String path;

    /**
    * 父级ID
    */
    @TableField("parent_id")
    private Long parentId;

    /**
    * 菜单的icon
    */
    @TableField("icon")
    private String icon;

    /**
    * 需要的权限
    */
    @TableField("permission_code")
    private String permissionCode;

    /**
    * 排序
    */
    @TableField("sort")
    private Integer sort;

}
